import request from '@/utils/request'

// 查询仪器信息列表
export function listInfo(query) {
  return request({
    url: '/instrument/info/list',
    method: 'get',
    params: query
  })
}

// 查询仪器信息详细
export function getInfo(id) {
  return request({
    url: '/instrument/info/' + id,
    method: 'get'
  })
}

// 新增仪器信息
export function addInfo(data) {
  return request({
    url: '/instrument/info',
    method: 'post',
    data: data
  })
}

// 修改仪器信息
export function updateInfo(data) {
  return request({
    url: '/instrument/info',
    method: 'put',
    data: data
  })
}



// 逻辑删除数据
export function delLogic(data){
  return request({
    url: '/instrument/info/logic',
    method: 'put',
    data: data
  })
}

// 删除仪器信息
export function delInfo(id) {
  return request({
    url: '/instrument/info/' + id,
    method: 'delete'
  })
}
